-
-
Notifications
You must be signed in to change notification settings - Fork 951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop @EnableWebMvc from being automatically added to Grails Applications #13863
base: 7.0.x
Are you sure you want to change the base?
Conversation
Did you try this out with BookFunctionalSpec > Test that when the /viewBooks URL is hit it redirects to the book list FAILED
Condition not satisfied:
title == "Book List"
| |
| false
| 36 differences (7% similarity)
| (HTTP) (Statu)s( 500 – In)t(ernal Server Error)
| (Book) (Li---)s(---------)t(------------------)
HTTP Status 500 – Internal Server Error
at functionaltests.BookFunctionalSpec.Test that when the /viewBooks URL is hit it redirects to the book list(BookFunctionalSpec.groovy:15) '2024-11-20 17:31:50.853 ERROR --- [nio-8080-exec-1] .C.[.[.[.[dispatcherServletRegistration] : Servlet.service() for servlet [dispatcherServletRegistration] in context with path [] threw exception
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'org.sitemesh.webapp.contentfilter.HttpServletRequestFilterable@6b88ebe0' with class 'org.springframework.web.context.request.ServletRequestAttributes' to class 'org.grails.web.servlet.mvc.GrailsWebRequest'
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM(DefaultTypeTransformation.java:415) |
@matrei please read above "This pull request is not finished" |
Sorry, I thought I got a review request. |
@matrei well, technically you did, but I immediately cancelled it and added the line "this pull request is not finished" before you got here😜 |
I have converted this PR to Draft for now. |
This produces unknown/unexpected behavior and should not be done. @EnableWebMvc is a Spring Framework configuration annotation not to be used with Spring Boot. It produces undesired behavior by automatically creating beans that are not wanted. WebMvcAutoConfiguration performs all the behavior of this configuration because it extends it and adds conditional logic.
Fixes
vs
This pull request is not finished